<template>
  <div class="itemone">
    <img :src="item1.image" alt="" class="img">
    <h3>{{item1.name}}</h3>
    <p><img :src="item1.author_avatar" alt="" class="img1"> {{item1.author_name}}</p>
  </div>
</template>

<script>
export default {
    name:"ItemOne",
    props:["item1"],
}
</script>

<style lang="scss">
    .itemone{
        width:100%;
        background-color:#fff;
        padding:0 .16rem;
        margin-top:.2rem;
        display:flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align:center;
        .img{
            width:2.8rem;
            height:2.8rem;
            border-radius:.2rem;
        }
        h3{
            width: 100%;
        }
        p{
            width: 100%;
            display:flex;
            align-items:center;
            justify-content: center;
            .img1{
                width: 0.62rem;
                height: 0.62rem;
                border-radius: 50%;
            }
        }
    }
</style>